import json

numbers = [2, 3, 5, 7, 11, 13, 17, 19, 23, 31]

filename = 'numbers.json'
with open(filename, 'w') as f:
    json.dump(numbers, f)
    print(f"Numbers saved to {filename}")

with open(filename) as f:
    numbers = json.load(f)
    print(f"Numbers loaded from {filename}: {numbers}")
